package org.jmh.gift.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
@Data
public class AddDTO {
    @NotNull(message = "请选择要添加的商品！！！")
    private Long skuId;

    @Min(value = 1,message = "请输入正确的商品数量！！！")
    private Integer num;

    private Long userId = 7L;
    private String username = "fengfeng";
}
